import type { App } from 'vue'
import { createPinia } from 'pinia'

const pinia = createPinia()

// 全局注册 store
export function setupPinia(app: App) {
  app.use(pinia)
}

export { useAppStore } from './modules/app'

export { useUserStore } from './modules/user'

export { useSettingsStore } from './modules/settings'

export { usePermissionStore } from './modules/permission'

export { useTagsViewStore, type TagView } from './modules/tagsView'
